home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Dev / misc / temgen.lha / Temgen / tg-0.11 / sysdefs.h < prev    next >
C/C++ Source or Header  |  2002-12-18  |  485b  |  31 lines

  1. #ifndef __sysdefs_h_
  2. #define __sysdefs_h_
  3.  
  4. #include "config.h"
  5.  
  6. #include <errno.h>
  7.  
  8. #if STDC_HEADERS
  9. #  include <stdarg.h>
  10. #  include <stdlib.h>
  11. #  include <string.h>
  12. #else
  13. #  error System has no ANSI header files
  14. #endif
  15.  
  16. #include <stdio.h>
  17.  
  18. #include <sys/types.h>
  19. #if HAVE_SYS_WAIT_H
  20. #  include <sys/wait.h>
  21. #else
  22. #  ifndef WEXITSTATUS
  23. #     define WEXITSTATUS(v) ((unsigned)(v) >> 8) 
  24. #  endif
  25. #  ifndef WIFEXITED
  26. #     define WIFEXITED(v) (((v) & 255) == 0)
  27. #  endif
  28. #endif
  29.  
  30. #endif
  31.